import React from "react";
import Layout from "@/layout";
import { RouteObject } from "../types";
import { lazyload } from "../utils/toolkit";

const life: RouteObject[] = [
  {
    meta: {
      title: "用例测试",
    },
    // element: <Layout></Layout>,
    element: lazyload(React.lazy(() => import("@/layout"))),
    children: [
      {
        path: "/test/image",
        meta: {
          title: "图片组件测试",
        },
        element: lazyload(React.lazy(() => import("@/views/test/image"))),
      },
    ],
  },
];

export default life;
